package com.opal.system.service.impl;

import com.opal.system.mapper.oracle.OpalUserInfoMapper;
import com.opal.system.service.OpalUserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

@Service
public class OpalUserInfoServiceImpl implements OpalUserInfoService {
    @Autowired
    private OpalUserInfoMapper opalUserInfoMapper;

    @Override
    public String getManagerCodeService(String deptCode) {
        Map<String,String> map=new  HashMap<>();
        map.put("deptcode",deptCode);
        map.put("managercode","0");
        //调用存储过程赋值给managercode
        opalUserInfoMapper.getManagerCode(map);
        return map.get("managercode");
    }
}
